package cn.mw.cmdb.entity;

import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Document("mw_cmdbmd_assets_code_cache")
@Data
public class AssetsCodeCacheDTO {
    @Schema(description = "资产编码")
    @CMDBProperty(searchType = PropertyTypeString.ID, keywordSearch = true)
    private String assetsCode;
    @Transient
    private List<String> assetsCodeList;
}
